//
// Created by wll on 2021/11/26.
//

#include "Command.h"
#include "LanguageSymbols.h"

bool CommandFactory::IsNormalSymbol(const Symbols& command)
{
    return (command == Symbols::CHAR || command == Symbols::INTEGER || command == Symbols::LONG || command == Symbols::FLOAT || command == Symbols::DOUBLE || command == Symbols::STRING);
}

bool CommandFactory::IsIgnorableSymbol(const Symbols& cmd)
{
    return (cmd == Symbols::IDLE || cmd == Symbols::WLL0 || cmd == Symbols::WLL1 || cmd == Symbols::WLL2 || cmd == Symbols::WLL3);
}
